Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
ID of the promotion tier to be redeemed.
"promo_2EnAik6Jt7dKTOMkRTIgEjZH"
Body
Provide the redemption context in the request body.
Redeem a promotion tier.
Customer's information. You can pass the unique customer ID that was assigned by Voucherify.
- Customer ID
- Customer Source ID
- Customer
Order information. You can pass the unique order ID that was assigned by Voucherify.
- Order ID
- Order Source ID
- Order Customer And Referrer Ids Objects
A set of key/value pairs that you can send in the request body to check against promotion tiers requiring redemption metadata validation rules to be satisfied. The validation runs against rules that are defined through the <!-- [Create Validation Rules](https://docs.voucherify.io/reference/create-validation-rules) -->Create Validation Rules endpoint or via the Dashboard; in the Advanced Rule Builder → Advanced → Redemption metadata satisfy or Basic Builder → Attributes match → REDEMPTION METADATA. Read more.
Response
Returns a redemption object if the redeem operation succeeded.
This is an object representing a promotion tier redemption.
Unique redemption ID.
"r_0bc92f81a6801f9bca"
The type of the object represented by the JSON. This object stores information about the redemption
.
Timestamp in ISO 8601 format indicating when the redemption occured.
"2022-10-03T12:24:58.008Z"
Unique customer ID of the redeeming customer.
"cust_i8t5Tt6eiKG5K79KQlJ0Vs64"
Hashed customer source ID.
"track_fxEMFiLowFHg=="
The metadata object stores all custom attributes in the form of key/value pairs assigned to the redemption.
Redemption result.
SUCCESS
, FAILURE
Defines the details of the order that is related to the redemption. This is an object representing an order with calculated discounts applied using the voucher code.
- Order object - Effect: Apply to order
- Order object - Effect: Apply to items
Defines the details of the channel through which the redemption was issued.
Defines the customer that is related to the redemption.
Defines the related object.
promotion_tier
Unique related object ID assigned by Voucherify, i.e. promo_NzjTc3ZXTe7md5SziK3uYtei for a promotion tier.
Contains details of the promotion tier and the parent campaign. This is an object representing a promotion tier. Promotion tiers are always assigned to a campaign and cannot be used standalone.